const express = require('express');

const app = express();

app.use('/api/:key', (req, res) => {
    // eslint-disable-next-line
    const resJson = require(`./api/${req.params.key}.json`);
    res.send(resJson);
    res.end();
});

app.listen(4001, () => {
    console.log('接口服务已经启动');
});
